package com.mine.consumer.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SenderConf {

    @Bean
    public Queue queue(){
        return new Queue("topic.message1");
    }
    @Bean
    public TopicExchange exchange(){
        return new TopicExchange("amq.topic");
    }

}
